package com.j180.spring_jwt_demo.controller;

import com.j180.spring_jwt_demo.bean.ResultBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/say")
    public ResultBean say(){

        ResultBean resultBean = new ResultBean();

        resultBean.setCode(0);
      resultBean.setMsg("查询成功");
        return resultBean;
    }
}
